<%--
  Created by IntelliJ IDEA.
  User: littleken
  Date: 2018/5/24
  Time: 13:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>Java验证码</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
  </head>
  <body>
  <img src="code.jsp" alt="" id="code">
  <a href="javascript:void(0);" onclick="changeCode()">看不清？点我</a>
  <script>

      function changeCode() {
          document.getElementById("code").src = "code.jsp?d="+new Date().getTime();
      }

  </script>
  </body>
</html>
